package com.youbest.cloud.javacore.unicode;

public class Unicode {
	public static void main(String[] args) {
		{
			String greeting = "greeting";
			int cpCount = greeting.codePointCount(0, greeting.length());
			
			System.out.println(cpCount);
		}
		
		{
			String greeting = "hehe";
			int cpCount = greeting.codePointCount(0, greeting.length());
			
			System.out.println(cpCount);
			
		}
	}
}
